package com.epfresh.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by wzh on 2016/3/29.
 */
public class OrderPayWayListEntity implements Serializable {


    /**
     * payWallets
     * "walletsTitle" : "使用钱包（历史结余）",
     * "wallets" : "0.00",
     * "type" : 0,
     * title : 6160715503700
     * payOnlineTotalValue : 300.0
     * payCodValue : 0.0
     * unPayValue : 0.0
     * payRemainSeconds : 1500
     * payWay : [{"id":7,"code":"weChat","name":"微信支付","serviceType":"cityPayChannel","serviceTypeStr":"支付渠道","children":null,"parentCode":"paymentOnline","parentId":14},{"id":6,"code":"alipay","name":"支付宝","serviceType":"cityPayChannel","serviceTypeStr":"支付渠道","children":null,"parentCode":"paymentOnline","parentId":14}]
     */
    String payWallets;
    private int type;
    String wallets;
    String walletsTitle;
    //0显示，1不显示
    Integer isWalletsInVisible;
    private String title;
    private String payOnlineTotalValue;
    private String payOnlineValue;
    private String unPayValue;

    private String payCodValue;
    private int payRemainSeconds;

    public boolean isWalletsInVisible() {
        return (isWalletsInVisible != null && isWalletsInVisible == 1) ? true : false;
    }

    public void setWalletsInVisible(boolean walletsInVisible) {
        isWalletsInVisible = walletsInVisible?1:0;
    }

    public String getPayWallets() {
        return payWallets;
    }

    public String getPayOnlineValue() {
        return payOnlineValue;
    }

    public void setPayOnlineValue(String payOnlineValue) {
        this.payOnlineValue = payOnlineValue;
    }

    public void setPayWallets(String payWallets) {
        this.payWallets = payWallets;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getWallets() {
        return wallets;
    }

    public void setWallets(String wallets) {
        this.wallets = wallets;
    }

    public String getWalletsTitle() {
        return walletsTitle;
    }

    public void setWalletsTitle(String walletsTitle) {
        this.walletsTitle = walletsTitle;
    }

    /**
     * id : 7
     * code : weChat
     * name : 微信支付
     * serviceType : cityPayChannel
     * serviceTypeStr : 支付渠道
     * children : null
     * parentCode : paymentOnline
     * parentId : 14
     */

    private List<PayWayBean> payWay;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPayOnlineTotalValue() {
        return payOnlineTotalValue;
    }

    public void setPayOnlineTotalValue(String payOnlineTotalValue) {
        this.payOnlineTotalValue = payOnlineTotalValue;
    }

    public String getPayCodValue() {
        return payCodValue;
    }

    public void setPayCodValue(String payCodValue) {
        this.payCodValue = payCodValue;
    }

    public String getUnPayValue() {
        return unPayValue;
    }

    public void setUnPayValue(String unPayValue) {
        this.unPayValue = unPayValue;
    }

    public int getPayRemainSeconds() {
        return payRemainSeconds;
    }

    public void setPayRemainSeconds(int payRemainSeconds) {
        this.payRemainSeconds = payRemainSeconds;
    }

    public List<PayWayBean> getPayWay() {
        return payWay;
    }

    public void setPayWay(List<PayWayBean> payWay) {
        this.payWay = payWay;
    }

    public static class PayWayBean implements Serializable {
        private String id;
        private String code;
        private String name;
        private String serviceType;
        private String serviceTypeStr;
        private Object children;
        private String parentCode;
        private String parentId;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getServiceType() {
            return serviceType;
        }

        public void setServiceType(String serviceType) {
            this.serviceType = serviceType;
        }

        public String getServiceTypeStr() {
            return serviceTypeStr;
        }

        public void setServiceTypeStr(String serviceTypeStr) {
            this.serviceTypeStr = serviceTypeStr;
        }

        public Object getChildren() {
            return children;
        }

        public void setChildren(Object children) {
            this.children = children;
        }

        public String getParentCode() {
            return parentCode;
        }

        public void setParentCode(String parentCode) {
            this.parentCode = parentCode;
        }

        public String getParentId() {
            return parentId;
        }

        public void setParentId(String parentId) {
            this.parentId = parentId;
        }
    }
}
